package me.zhengjie.modules.system.mapper;

import me.zhengjie.modules.system.domain.User;
import me.zhengjie.modules.system.service.dto.UserDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * 用户映射器
 *
 * @author hehui
 * @date 2021/12/25
 */
@Mapper
public interface UserMapper {


    /**
     * 获得用户名
     *
     * @param ids id
     * @return {@link List}<{@link User}>
     */
    List<User> getUserName(List<Long> ids);

    /**
     * 根据部门查询
     *
     * @param deptIds 部门id
     * @param jobIds
     * @return {@link List}<{@link UserDto}>
     */
    List<UserDto> getAll(@Param("deptIds") Collection<Long> deptIds, @Param("jobIds") Set<Long> jobIds);
}
